package Vue.Combat;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;

import javax.swing.BorderFactory;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JPanel;
import javax.swing.JSplitPane;

import Modele.HerosCarte;
import Modele.MonstreCarte;
import Vue.InterfacePrincipale;

import Controleur.NouvellePartie;

public class InterfaceCombat extends JPanel{

	private InfosHero infoHero;
	private InfosMonstre infoMonstre;
	private Carte carteCombat;
	private Action action;
	
	public InterfaceCombat(HerosCarte premierCombattant, Object deuxiemeCombattant) {
		this.setSize(1272, 1000);
		this.setPreferredSize(new Dimension(1272, 1000));
		this.setBackground(Color.BLACK);
		this.setLayout(null);
		
		infoHero = new InfosHero(premierCombattant);
		infoHero.setBounds(0, 0, 186, 900);
		infoMonstre = new InfosMonstre((MonstreCarte)deuxiemeCombattant);
		infoMonstre.setBounds(1086, 0, 186, 900);
		carteCombat = new Carte(premierCombattant, deuxiemeCombattant);
		carteCombat.setBounds(186, 0, 900, 900);
		action = new Action();
		action.setBounds(0, 900, 1272, 100);
		
		this.add(infoHero);
		this.add(carteCombat);
		this.add(infoMonstre);
		this.add(action);
				
		InterfacePrincipale.changerPanel(this);
	}
}
